home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 68.7z / BS1 part 68 / InterChange Plus v3.0 (1993-11)(Syndesis)(Disk 2 of 2).7z / InterChange Plus v3.0 (1993-11)(Syndesis)(Disk 2 of 2).adf / PC_Tools.LZH / DXF3DS.ZIP / DXF3DS.DOC next >
Text File  |  1991-12-30  |  13KB  |  291 lines

  1.                              DXF3DS
  2.             Autodesk 3D Studio DXF Conversion Utility
  3.                     Copyright 1991 Dan Silva
  4.      For distribution among 3D Studio users.  NOT FOR SALE.
  5.              Produced Exclusively for Autodesk, Inc.
  6.                                by
  7.                         Yost Group, Inc.
  8.                             12-31-91 
  9.  
  10.  
  11. Converts DXF files to 3DS, SHP, or LFT files, and converts FLM
  12. files to 3DS files.  This program addresses many of the
  13. limitations of the built-in DXF translation that was included
  14. with 3D Studio release 1.0.  The major features of DXF3DS include
  15. the conversion of AutoCAD Blocks and Extruded lines, automatic
  16. welding/unifying/smoothing of the resulting objects, better
  17. handling of face normals, and the ability to convert AutoCAD 3D
  18. polylines to Lofter path (.LFT) files. 
  19.  
  20.      Usage:
  21.  
  22.           dxf3ds froon.dxf  ..Switches..
  23.      or
  24.           dxf3ds baz.flm  ..Switches..
  25.  
  26.      Switches
  27.      
  28.           /T  "to" file type: ( default to .3DS )
  29.                /TS       output .SHP file containing Shape.
  30.                /TL       output .LFT file containing Path.
  31.                /T3       output .3DS file containing Objects.
  32.  
  33.                Note:     The resulting file will get written to
  34.                          the same directory as the source DXF
  35.                          file.  After conversion, you will want
  36.                          to put this file in the appropriate 3D
  37.                          Studio directory:  MESHES, SHAPES, or
  38.                          LOFTS.  CAUTION -- this utility will
  39.                          overwrite an existing file with the same
  40.                          name. 
  41.  
  42.           The following switches only have meaning when creating
  43.      a .3DS file:
  44.  
  45.           /O   object definition: ( default to "by layer" )
  46.                Note:  This only works with .dxf files... 
  47.                       It's invalid for .flm files (filmrolls
  48.                       only convert by color).
  49.                /OE       by entity
  50.                /OC       by color
  51.                /OL       by layer
  52.      
  53.           /Wnnn   auto-weld        Automatically welds coincident
  54.                                    vertices.
  55.                                    nnn = optional weld-threshold
  56.                                    in multiples of .00001 units.
  57.                                    Defaults to 1.
  58.                                    Note:  Welding (and subsequent
  59.                                    Unifying) can only take place
  60.                                    within a given 3DS "Object"
  61.                                    group.  Welding can not happen
  62.                                    between objects.  Remember
  63.                                    this when you create your
  64.                                    objects in AutoCAD, and
  65.                                    subsequently when you convert
  66.                                    the .dxf files into .3ds files
  67.                                    (by layer, color, or entity),
  68.                                    if you want them to be welded
  69.                                    and unified.  
  70.      
  71.           /U     auto-unify        Note:  Only welded objects may
  72.                                    have their surface normals
  73.                                    unified.  And only 3D entities
  74.                                    can be unified (ie, a 2D plane
  75.                                    floating in space cannot be
  76.                                    unified).  This is important
  77.                                    to note when you convert .dxf
  78.                                    files into .3ds files and make
  79.                                    the decision to bring them in
  80.                                    either by layer, by color, or
  81.                                    by entity.  Plus, although the
  82.                                    current unification code is
  83.                                    better than the 3DS 1.0 code,
  84.                                    it still requires you to
  85.                                    follow the golden rule:  the
  86.                                    object's topology must have
  87.                                    integrity. This means that
  88.                                    every edge must be shared by
  89.                                    two faces, except for edges at
  90.                                    the object's perimeter.  
  91.                                         
  92.           /Snn   auto-smooth       Automatically sets smoothing
  93.                                    groups for the objects based
  94.                                    on the angle between non-
  95.                                    coplanar edges.
  96.                                    nn =  optional edge angle
  97.                                    threshold.
  98.                                    Defaults to 30 degrees.  
  99.                                    Note:  Only welded objects can
  100.                                    have smoothing groups
  101.                                    assigned.
  102.  
  103.           /Ann   arc-smoothness    Arc step size for polyline
  104.                                    conversion.
  105.                                    nn = step angle in degrees. 
  106.                                    Defaults to 10 degrees.
  107.                                    (Note that this only needs to
  108.                                    be lowered if you want
  109.                                    smoother arcs as they're
  110.                                    converted from Acad polylines
  111.                                    into 3DS objects.  It'll most
  112.                                    likely never need to be raised
  113.                                    above 10-degrees, since that
  114.                                    will make arcs coarser.)
  115.      
  116.      --------
  117.      Examples:
  118.      
  119.      To convert from FROON.DXF to FROON.3DS, defining objects by
  120. Entity, welding with a threshold of .001, auto-unifying surface
  121. normals, smoothing with an angle threshold of 40 degrees, and
  122. arc-smoothing with an angle threshold of 3 degrees: 
  123.  
  124.                dxf3ds froon.dxf /OE /W100 /U /S40 /A3
  125.      
  126.      To convert from DWEEB.FLM to DWEEB.3DS, welding with a
  127. default threshold of .00001, auto-unifying surface normals,
  128. smoothing with a default angle threshold of 30 degrees, and arc-
  129. smoothing with the default threshold of 10 degrees (arc smoothing
  130. is done automatically, so no switch is needed to accept the
  131. default): 
  132.  
  133.                dxf3ds dweeb.flm /w /u /s 
  134.  
  135.      To convert from DWEEB.DXF to DWEEB.SHP:  (note:  will only
  136. convert 2D polylines)
  137.  
  138.                dxf3ds dweeb.dxf /ts
  139.  
  140.      To convert from DWEEB.DXF to DWEEB.LFT:  (note:  will only
  141. convert the last found 3D polyline)
  142.  
  143.                dxf3ds dweeb.dxf /tl
  144.  
  145.      A sample batch file "DXF3DSL.BAT" is included to show you
  146. how you might automate your conversion with preferred switches.  
  147.  
  148.      To convert DWEEB.DXF to DWEEB.3DS defining objects by layer,
  149. with an auto-smoothing angle threshold of 35 degrees, autoweld
  150. on, and auto-unification of surface normals, type:
  151.  
  152.           dxf3dsl dweeb
  153.  
  154.      dxf3dsl.bat contains:
  155.  
  156.           dxf3ds %1.dxf /Ol /W /U /S35
  157.  
  158.      You may want to modify this to customize it for your
  159. particular needs. 
  160. _____________
  161.  
  162. Installation:
  163.  
  164.      Two versions of this utility are included:
  165.  
  166.           DXF3DS.EXE    -     INTEL version     
  167.           DXF3DSW.EXE   -     WEITEK version for PC's that are
  168.                               configured with only a WEITEK math
  169.                               coprocessor. 
  170. ______________
  171.  
  172. Helpful Notes:
  173.  
  174. 1)   Some of the techniques as outlined in Appendix B of the 3D
  175.      Studio reference manual for working with DXF files no longer
  176.      apply.
  177.  
  178.      -    You no longer have to explode AutoCAD AME meshes prior
  179.           to making the DXF file.
  180.      -    Welding and smoothing is now done automatically.
  181.      -    You no longer have to use Filmrolls if your AutoCAD
  182.           drawing contains Blocks and Extruded lines. 
  183.  
  184. 2)   DXF files produced by GENERIC CADD's 3DD are accepted by
  185.      this utility.
  186.  
  187. 3)   Recommended procedure for Using 3D Studio to create
  188.      walkthroughs of architectural models produced in AutoCAD.
  189.  
  190.      -    While in AutoCAD, create a 3D Polyline that defines a
  191.           camera path through your building.  If you have more
  192.           than one 3D Polyline in your model, turn off or freeze
  193.           the layers that contain the other polylines.
  194.  
  195.      -    Create a DXF file.
  196.  
  197.      -    Convert the DXF file to a 3DS file using DXF3DS.
  198.  
  199.      -    Convert the DXF file to a .LFT file using DXF3DS /TL.
  200.  
  201.      -    In the 3D Editor, assign materials and add lights.
  202.  
  203.      -    In the Keyframer, use Get Path and select the .LFT file
  204.           that contains the converted 3D Polyline.  You may want
  205.           to assign a dummy to this path and link your camera and
  206.           target to the dummy.  (Note, if you want the camera to
  207.           track the target, you'll have to slide the camera keys
  208.           back in time so the camera is following the dummy.)
  209.  
  210. 4)   After converting a DXF file to a 3DS file,  you may want to
  211.      break down the resulting 3D Studio objects into smaller
  212.      objects.  A technique for doing this is: 
  213.  
  214.      -    Use Select Face to select faces that you want to
  215.           convert into separate objects.
  216.  
  217.      -    Use Create/Face/Detach  with the "SELECTED" button on. 
  218.           This will prompt you for the name of the selected
  219.           objects. 
  220.  
  221. 5)   The following AutoCAD Entities in DXF files get converted to
  222.      3D Studio Objects:
  223.  
  224.      -    3D faces and polygon meshes
  225.      -    Circles, solids, traces, doughnuts, polylines with
  226.           width, closed arcs, closed 2D polylines, and extruded
  227.           polylines
  228.      -    Any extruded entities
  229.      -    Polyface meshes from AutoCAD Release 11
  230.      -    AutoCAD blocks containing any of these entities
  231.      -    Entities on frozen or turned-off layers are ignored
  232.  
  233. 6)   AutoCAD Advanced Modeling Extension (AME) note:  Remember
  234.      while still in AutoCAD to use SOLMESH on AME models prior to
  235.      exporting a DXF file for conversion to 3D Studio. 
  236.  
  237. 7)   As noted above, the successful unification of face normals
  238.      depends on the welding of coincident vertices.  Sometimes,
  239.      depending upon the precision of the model as it was created
  240.      in AutoCAD, the vertices may not be "coincident enough" for
  241.      proper face normal unification.  In this case, you may have
  242.      to increase the weld-threshold to account for any floating-
  243.      point round-off errors that occur when the converter looks
  244.      for coincident vertices.  This is especially true when
  245.      converting models produced in AutoCAD release 11 with the
  246.      AME (Advanced Modeling Extension) version 1.0.   This is
  247.      because AME 1.0, like 3D Studio, uses single precision
  248.      floating point calculations.
  249.  
  250.      Example:  A DXF file was produced from an AutoCAD AME model
  251.                of a skateboard.  This DXF file was converted to a
  252.                3DS file.  The first time the default weld-
  253.                threshold was used, which resulted in some
  254.                incomplete surface-normal unification.   This DXF
  255.                file was converted again, but this time /W100 was
  256.                used -- which resulted in correct surface-normal
  257.                unification. 
  258.  
  259. 8)   Converting DXF files using the "By Layer" Object Definition
  260.      method can result in objects consisting of many elements. 
  261.      In certain cases, some of these elements may have all of
  262.      their face normals flipped the wrong way.  This is
  263.      detectable in 3D Studio by selecting Backface in the
  264.      Display/Geometry command menu.  Use Surface/Normals/Element
  265.      Flip to correct this.  Note:  If you would rather not pay
  266.      attention to face normals when using 3D Studio to Render
  267.      AutoCAD-produced models, use 2-Sided Materials. 
  268.  
  269. 9)   If you are loading a large scene containing thousands of
  270.      entities (such as 3D faces) and have chosen to bring objects
  271.      in "by entity," it can take a tremendous amount of time to
  272.      create the file.  It will also create huge numbers of
  273.      objects which you'll have to wade through in 3D Studio.  We
  274.      recommend that you organize your DXF file in AutoCAD so that
  275.      these kinds of entities are grouped by layer, and that you
  276.      make the conversion into 3D Studio "by layer."
  277.  
  278. 10)  If you have created a DXF file that doesn't successfully
  279.      load into 3D Studio after being converted by this utility,
  280.      please send us the file on a floppy disk with a document
  281.      describing how you made the file, (both the technique and
  282.      with what version of AutoCAD or other program), and what
  283.      exactly the nature of the problem is.  Send it to:
  284.  
  285.           Autodesk 3D Studio DXF3DS tech support
  286.           Autodesk, Inc.
  287.           2320 Marinship Way
  288.           Sausalito, CA  94965
  289.  
  290. [end]
  291.